package cn.spike.rockcc.feignclient;


import cn.spike.rockcc.domain.Login;
import cn.spike.rockcc.fallback.LoginFeignFallbackFactory;
import cn.spike.rockcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-uaa",fallbackFactory = LoginFeignFallbackFactory.class)
public interface LoginFeignClient {

    @PostMapping("/login/register")
    JSONResult register(@RequestBody Login login);
}
